package com.tuo51.childcare.domain.vo;

import com.tuo51.childcare.domain.bize.BizEvaluateQuestion;
import com.tuo51.childcare.domain.bize.BizEvaluateSheet;
import com.tuo51.foudation.utils.CopyUtils;
import lombok.Data;

import java.util.List;

/**
 * 月龄对应的操作，对应测评表的月单元格
 */

@Data
public class BizEvaluateSheetVO{

    private String sheetName;

    private String description;

    private Integer month_min = 0;

    private Integer month_max = 0;

    private Integer pathPolicy;

    private Integer questionCount = 0;

    private Integer maxScore = 0;

    private Integer minScore = 0;

    private List<BizEvaluateQuestion> questions;

    private int rest;

    public static BizEvaluateSheetVO of(BizEvaluateSheet sheet){
        BizEvaluateSheetVO ret = new BizEvaluateSheetVO();

        CopyUtils.copyProperties(sheet, ret);

        return ret;
    }

}
